<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<script type="text/javascript">

$(function() {
	window.setTimeout(function() {
		parent.$.messager.progress('close');
	}, 1);

	$('#form').form({
		url : '${pageContext.request.contextPath}/business/accounting/zdpzgl/update.shtml',
		
		onSubmit : function() {
			parent.$.messager.progress({
				title : '提示',
				text : '数据处理中，请稍后....'
			});
			var isValid = $(this).form('validate');
			if (!isValid) {
				parent.$.messager.progress('close');
			}
			return isValid;
		},
		
		success : function(result) {
			parent.$.messager.progress('close');
			result = $.parseJSON(result);
			if (result.success) {
				$.messager.alert('通知',"修改成功！");
				parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
				parent.$.modalDialog.handler.dialog('close');
			} else {
				parent.$.messager.alert('错误', result.msg, 'error');
			}
		}
	});
});
	
	$(function() {
		
		 var ID =${HZJZPZ.ID};
			$.ajax({
				url : '${pageContext.request.contextPath}/business/accounting/zdpzgl/hxhsdw.shtml?ID='+ID
				, type : "post"
				, dataType : 'json'
				, data : ''
				, success : function(data) {
					console.info(data);
					var hsdw= data[0].TITLE;
					ABC(hsdw);
					  }
		
					  });
	});

	function ABC(hsdw)
	    {
		$("#HSDW").val(hsdw);
		}
</script>
<div class="div_center">
	<div class="easyui-layout" data-options="fit:true,border:false">
		<div data-options="region:'center',border:false" title="" style="overflow: hidden;">
			<form id="form" method="post" enctype="multipart/form-data" >
				<table class="form_view_border" border="1px" cellpadding="0" cellspacing="0" id="table_id">
				<tr>
				<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >显示凭证号</th>
					<td><input name="XSPZH" type="text" class="span2" style="width:150px; height: 27px;" value="${HZJZPZ.XSPZH}" class="form_view_input combo easyui-combobox"  ></td>
					
				<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >摘要</th>
					<td><input name="ZHAIYAO" type="text" class="span2" style="width:150px; height: 27px;" value="${HZJZPZ.ZHAIYAO}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
					
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >附件单据数</th>
					<td><input name="FJDJS" type="text" class="span2" style="width:150px; height: 27px;" value="${HZJZPZ.FJDJS}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
				</tr>
				<tr>
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >借方发生额</th>
					<td><input name="JFFSE" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.JFFSE}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				
				<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >记账凭证号</th>
					<td><input name="JZPZH" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.JZPZH}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >科目编号</th>
					<td><input name="KMBH" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.KMBH}" class="form_view_input combo easyui-combobox"  readonly="true"  ></td>
				
				</tr>
				<tr>
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >贷方发生额</th>
					<td><input name="DFFSE" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.DFFSE}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				
					
				<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >分录序号</th>
					<td><input name="FLXH" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.FLXH}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
					
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >记账日期</th>
					<td><input id="jzrq" name="jzrq" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="<fmt:formatDate  value="${HZJZPZ.JZRQ}" />" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				
					
				</tr>
				<tr>
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >业务类型</th>
					<td><input name="YWLX" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.YWLX}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >资金业务类型</th>
					<td><input name="ZJYWLX" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.ZJYWLX}" class="form_view_input combo easyui-combobox" readonly="true" 
					
					
					  ></td>
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >科目名称</th>
					<td><input name="KMMC" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.KMMC}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
				</tr>
				<tr>
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >制单</th>
					<td><input name="ZD" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.ZD}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >制单日期</th>
					<td><input name="zdrq"   type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" 	value="<fmt:formatDate  value="${HZJZPZ.ZDRQ}" />" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >复核</th>
					<td><input name="FH" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.FH}" class="form_view_input combo easyui-combobox"  readonly="true" ></td>
				
				</tr>
				
				<tr>
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >复核日期</th>
					<td><input name="fhrq" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="<fmt:formatDate  value="${HZJZPZ.FHRQ}" />"  class="form_view_input combo easyui-combobox"  readonly="true"  ></td>
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >凭证状态</th>
					<td><input name="PZZT" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.PZZT}" class="form_view_input combo easyui-combobox"  readonly="true"  ></td>
				
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >汇总凭证号</th>
					<td><input name="HZPZH" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.HZPZH}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
				</tr>
				
				<tr>
				
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >账套代码</th>
					<td><input name="ZTDM" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.ZTDM}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
					
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >凭证类别</th>
					<td><input name="PZLB" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.PZLB}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >问题说明</th>
					<td><input name="WTSM" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.WTSM}" class="form_view_input combo easyui-combobox"  readonly="true"  ></td>
				
				</tr>
				
				<tr>
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >凭证状态标识</th>
					<td><input name="PZZTBS" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.PZZTBS}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >制作标记</th>
					<td><input name="ZZBJ" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.ZZBJ}" class="form_view_input combo easyui-combobox" readonly="true"  ></td>
				
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >资金流水号</th>
					<td><input name="ZJLSH" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.ZJLSH}" class="form_view_input combo easyui-combobox"  readonly="true"  ></td>
				
				</tr>
				<tr>
					<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox"  >记账</th>
					<td><input name="JZ" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.JZ}" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				
					<th class="panel-header" data-options="required: true" 
								class="form_view_input combo easyui-validatebox" >凭证日期</th>
					<td><input id="pzrq" name="pzrq" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="<fmt:formatDate  value="${HZJZPZ.PZRQ}" />" class="form_view_input combo easyui-combobox" readonly="true"   ></td>
				</tr>
				<tr style="display:none">
				<th class="panel-header"data-options="required: true" 
								class="form_view_input combo easyui-validatebox">ID</th>
					<td><input name="ID" id="in" type="text" class="span2" style="width:150px; height: 27px;background-color:#A1A1A1" value="${HZJZPZ.ID}" class="form_view_input combo easyui-combobox"  readonly="true"  ></td>
				
				</tr>
				</table>
			</form>
		</div>
	</div>
</div>